package com.ftu.study.pattern.command;

public class SimpleRemoteControl {
    Command slot;
    public SimpleRemoteControl() {}
    
    public void setCommand(Command command) {
        slot = command;
    }
    
    public void buttonWasPressed() {
        slot.execute();
    }
}
